package com.share.hope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "attendance_record")
@Schema(description = "存储打卡的信息")
public class RecordInfo {

    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "打卡记录的唯一标识")
    private Long id;

    @TableField(value = "user_id")
    @Schema(description = "打卡用户的唯一标识")
    private Long userId;

    @TableField(value = "punch_time")
    @Schema(description = "打卡时间")
    private String punchTime;

}
